<?php

namespace App\Models\V5;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\DB;

class LessonCenterNotice extends Model
{
    use SoftDeletes;
    protected $dates = ['deleted_at'];
    protected $table = 'lesson_center_notice';
    protected $fillable = ['type', 'title', 'notice_img', 'notice_id'];

    public function get_all()
    {
        $data = DB::table('lesson_center_notice as lcn')->where('deleted_at', '=', null)->get();
        return $data;
    }
}
